<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS背景之背景平铺</title>
    <style>
        div {
            width: 300px;
            height: 300px;
            /* 不要落下url */
            background-image: url(../0.素材/图像/二维码.png);
            /* 背景图片没有平铺 */
            /* background-repeat: no-repeat; */
            /* 默认的情况下，背景图片是平铺的 */
            background-repeat: no-repeat;
            /* 沿x轴平铺 repeat-x; */
            /* 沿y轴平铺 repeat-y； */
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>